import {useEffect} from 'react'
import styles from './Music.module.css'
import { useSearchParams } from 'react-router-dom'
import { MusicDetail } from '../../api/index'
const Music = () => {
  const [query] = useSearchParams()
  useEffect(() => {
    const id = query.get('id')
    MusicDetail(id).then((res) => {
      var result = res.data.playlists
      console.log(result)
      // setMusic(result)
    })
  }, [])
  return (
    <div className={styles.music}>
      
    </div>
  )
}

export default Music
